public class BuyTicket {
    public static void main(String[] args) {
        Tickets t=new Tickets(30);
        Thread t1=new SellTicket(t);
        Thread t2=new SellTicket(t);
        t1.setName("售票窗口一");
        t2.setName("售票窗口二");
        t1.start();
        t2.start();
    }


}
